package com.at.clinica.services.impl;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.at.clinica.repository.IItemRepository;
import com.at.clinica.services.IItemServices;
import com.at.clinica.vos.Item;
import com.at.clinica.vos.SubCategoria;

public class ItemServices implements IItemServices {
	
	@Autowired
	IItemRepository repoItem;
	 
	protected final Log logger = LogFactory.getLog(getClass());

	@Transactional
	@Override
	public void agregarItem(Item item) throws Exception {
		repoItem.save(item);
	}

	@Override
	public List<Item> listarItems() throws Exception {
		return repoItem.getListEntity(Item.class);
	}

	
	
}